package com.yudean.esb.dao.erp;

import com.yudean.esb.domain.erp.ErpIdsApConPaymentsInt;
import com.yudean.esb.mapper.erp.ErpIdsApConPaymentsIntMapper;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Repository;

import javax.annotation.Resource;
import java.util.List;

@Repository
@Scope("prototype")
public class ErpIdsApConPaymentsIntDao {

    @Resource
    public ErpIdsApConPaymentsIntMapper erpIdsApConPaymentsIntMapper;

    public int insertSelective(ErpIdsApConPaymentsInt record) {
        return erpIdsApConPaymentsIntMapper.insertSelective(record);
    }

    public int batchInsertErpIdsApConPaymentsIntData(List<ErpIdsApConPaymentsInt> erpIdsApConPaymentsIntList) {
        return erpIdsApConPaymentsIntMapper.batchInsertErpIdsApConPaymentsIntData(erpIdsApConPaymentsIntList);
    }

    public int deleteErpIdsApConPaymentsIntByControlId(long controlId) {
        return erpIdsApConPaymentsIntMapper.deleteErpIdsApConPaymentsIntByControlId(controlId);
    }
}

